package com.my.collection.stack.v8;

import java.util.concurrent.locks.AbstractQueuedSynchronizer;

/**
 * Created by ZhongGang
 * at 2018/7/26 16:43
 */
public class MySemaphore {

    private static class Sync extends AbstractQueuedSynchronizer {

        @Override
        protected int tryAcquireShared(int arg) {
            return super.tryAcquireShared(arg);
        }

        @Override
        protected boolean tryReleaseShared(int arg) {
            return super.tryReleaseShared(arg);
        }

    }

}
